<!--  -->
<template>
    <!-- 正文 -->
    <div style="padding-bottom: 42px;">

        <van-form>

            <!-- 企业模糊查询 -->
            <van-cell-group v-if="params.code == 'qyzx_qymhcx'">

                <van-field readonly name="entName" :value="mFromdata.entName" label="企业名称：" label-width="5em" />
                <van-field readonly name="type" :value="mFromdata.type" label="企业分类：" label-width="5em" />
                <van-field readonly name="name" :value="mFromdata.name" label="企业负责人（法定代表人）：" label-width="13em" />
                <van-field readonly name="uniscid" :value="mFromdata.uniscid" label="统一社会信用代码：" label-width="9em" />
                <van-field readonly name="esDate" :value="mFromdata.esDate" label="成立日期：" label-width="5em" />
                <van-field readonly name="entStatus" :value="mFromdata.entStatus" label="经营状态：" label-width="5em" />
                <van-field readonly name="provinceCode" :value="mFromdata.provinceCode" label="省份编码："
                    label-width="5em" />
                <van-field readonly name="cityCode" :value="mFromdata.cityCode" label="市编码：" label-width="4em" />
                <van-field readonly name="districtCode" :value="mFromdata.districtCode" label="区县编码："
                    label-width="5em" />
                <van-field readonly name="registeredProvince" :value="mFromdata.registeredProvince" label="注册省份："
                    label-width="5em" />
                <van-field readonly name="registeredCity" :value="mFromdata.registeredCity" label="注册地市："
                    label-width="5em" />
                <van-field readonly name="registeredCountry" :value="mFromdata.registeredCountry" label="注册区县："
                    label-width="5em" />

            </van-cell-group>

            <!-- 企业精确查询 -->
            <van-cell-group v-else-if="params.code == 'qyzx_qyjqcx'">


                <van-field readonly name="entName" :value="mFromdata.entName" label="企业名称：" label-width="5em" />
                <van-field readonly name="type" :value="mFromdata.type" label="企业分类：" label-width="5em" />
                <van-field readonly name="uniscid" :value="mFromdata.uniscid" label="统一社会信用代码：" label-width="9em" />
                <van-field readonly autosize type="textarea" rows="1" name="address" :value="mFromdata.address"
                    label="营业场所（注册地址）：" label-width="11em" />
                <van-field readonly name="orgCode" :value="mFromdata.orgCode" label="组织机构代码：" label-width="7em" />
                <van-field readonly name="name" :value="mFromdata.name" label="负责人（法定代表人）：" label-width="11em" />
                <van-field readonly name="regCap" :value="mFromdata.regCap" label="注册资本：" label-width="5em" />
                <van-field readonly name="esDate" :value="mFromdata.esDate" label="成立日期：" label-width="5em" />
                <van-field readonly name="apprDate" :value="mFromdata.apprDate" label="核准日期：" label-width="5em" />
                <van-field readonly name="opFrom" :value="mFromdata.opFrom" label="经营期限自：" label-width="6em" />
                <van-field readonly name="opTo" :value="mFromdata.opTo" label="经营期限至：" label-width="6em" />
                <van-field readonly autosize type="textarea" rows="1" name="opsScope" :value="mFromdata.opsScope"
                    label="经营范围：" label-width="5em" />
                <van-field readonly name="regOrg" :value="mFromdata.regOrg" label="登记机关：" label-width="5em" />
                <van-field readonly name="entStatus" :value="mFromdata.entStatus" label="登记状态：" label-width="5em" />
                <van-field readonly name="industry" :value="mFromdata.industry" label="行业门类：" label-width="5em" />
                <van-field readonly name="industrySub" :value="mFromdata.industrySub" label="行业大类：" label-width="5em" />
                <van-field readonly name="hasDranchoffice" :value="mFromdata.hasDranchoffice" label="是否有分支机构："
                    label-width="8em" />
                <van-field readonly name="isAbnormaloperation" :value="mFromdata.isAbnormaloperation" label="是否有经营异常记录："
                    label-width="10em" />
                <van-field readonly name="isWrongfulFaith" :value="mFromdata.isWrongfulFaith" label="是否有严重违法失信记录："
                    label-width="12em" />
                <van-field readonly name="isDishonesty" :value="mFromdata.isDishonesty" label="是否有企业失信："
                    label-width="8em" />
                <van-field readonly autosize type="textarea" rows="1" name="actAddr" :value="mFromdata.actAddr"
                    label="实际地址（经营地址）：" label-width="11em" />
                <van-field readonly name="coordinateAddr" :value="mFromdata.coordinateAddr" label="坐标地址："
                    label-width="5em" />
                <van-field readonly name="logoutDate" :value="mFromdata.logoutDate" label="注销日期：" label-width="5em" />
                <van-field readonly name="revocationDate" :value="mFromdata.revocationDate" label="吊销日期："
                    label-width="5em" />
                <van-field readonly name="registeredProvince" :value="mFromdata.registeredProvince" label="注册省份："
                    label-width="5em" />
                <van-field readonly name="registeredCity" :value="mFromdata.registeredCity" label="注册地市："
                    label-width="5em" />
                <van-field readonly name="registeredCountry" :value="mFromdata.registeredCountry" label="注册区县："
                    label-width="5em" />
                <van-field readonly name="buIndustry" :value="mFromdata.buIndustry" label="政企客户行业门类："
                    label-width="9em" />
                <van-field readonly name="buIndustrySub" :value="mFromdata.buIndustrySub" label="政企客户行业类型："
                    label-width="9em" />
                <van-field readonly name="empNum" :value="mFromdata.empNum" label="企业员工数：" label-width="6em" />
                <van-field readonly autosize type="textarea" rows="1" name="mainManager" :value="mFromdata.mainManager"
                    label="高管信息：" label-width="5em" />


            </van-cell-group>

            <!-- 股权关系查询 -->
            <van-cell-group v-else-if="params.code == 'qyzx_gqgxcx'">

                <van-field readonly name="inv" :value="mFromdata.inv" label="股东名称：" label-width="5em" />
                <van-field readonly name="invtype" :value="mFromdata.invtype" label="股东类型：" label-width="5em" />
                <van-field readonly name="subconam" :value="mFromdata.subconam" label="认缴出资额：" label-width="6em" />
                <van-field readonly name="condate" :value="mFromdata.condate" label="出资时间：" label-width="5em" />
                <van-field readonly name="shxydm" :value="mFromdata.shxydm" label="统一社会信用代码：" label-width="9em" />
                <van-field readonly name="concur" :value="mFromdata.concur" label="出资币种：" label-width="5em" />
                <van-field readonly name="conratio" :value="mFromdata.conratio" label="出资比例：" label-width="5em" />
            </van-cell-group>

            <!-- 企业风险查询 -->
            <div v-else-if="params.code == 'qyzx_qyfxcx'">

                <van-cell-group>
                    <van-field readonly name="entName" :value="mFromdata.entName" label="企业名称/个体工商户名称："
                        label-width="13em" />
                    <van-field readonly name="uniscid" :value="mFromdata.uniscid" label="统一社会信用代码：" label-width="9em" />
                    <van-field readonly name="orgCode" :value="mFromdata.orgCode" label="组织机构代码：" label-width="7em" />
                </van-cell-group>

                <section-header sectionTitle="经营异常信息" />
                <el-table :data="mFromdata.abnormaloperation" border style="width: 100%"
                    :header-cell-style="{ 'text-align': 'center' }" :cell-style="{ 'text-align': 'center' }">
                    <el-table-column prop="recDate" label="列入日期" width="110" />
                    <el-table-column prop="recAbnormal" label="列入经营异常原因" width="300" />
                    <el-table-column prop="cancelDate" label="移出日期" width="110" />
                    <el-table-column prop="cancelAbnormal" label="移出经营异常原因" width="360" />
                    <el-table-column prop="cancelByAuthority" label="移出决定机关" width="150" />
                </el-table>


                <section-header sectionTitle="严重违法失信信息" />
                <el-table :data="mFromdata.wrongfulFaith" border style="width: 100%"
                    :header-cell-style="{ 'text-align': 'center' }" :cell-style="{ 'text-align': 'center' }">
                    <el-table-column prop="recWrongfulFaith" label="列入严重违法失信（黑名单）原因" width="360" />
                    <el-table-column prop="recDate" label="列入日期" width="110" />
                    <el-table-column prop="recByAuthority" label="作出决定机关（列入）" width="170" />

                    <el-table-column prop="cancelWrongfulFaith" label="移出严重违法失信原因" width="360" />
                    <el-table-column prop="cancelDate" label="移出日期" width="110" />
                    <el-table-column prop="cancelByAuthority" label="作出决定机关（移出）" width="170" />
                </el-table>

                <section-header sectionTitle="企业失信信息" />
                <el-table :data="mFromdata.dishonesty" border style="width: 100%"
                    :header-cell-style="{ 'text-align': 'center' }" :cell-style="{ 'text-align': 'center' }">
                    <el-table-column prop="issueDate" label="发布日期" width="110" />
                    <el-table-column prop="courtName" label="执行法院" />
                    <el-table-column prop="province" label="省份" />
                    <el-table-column prop="gisID" label="执行依据文号" width="110" />
                    <el-table-column prop="regDate" label="立案日期" width="110" />
                    <el-table-column prop="caseCode" label="案号" />
                    <el-table-column prop="definedObligations" label="生效法律文档确定的义务" width="360" />
                    <el-table-column prop="performance" label="履行情况" width="360" />
                    <el-table-column prop="disruptTypeName" label="失信被执行人行为具体情形" width="260" />
                </el-table>

            </div>

            <!-- 企业关联查询 -->
            <van-cell-group v-else-if="params.code == 'qyzx_qyglcx'">

                <van-field readonly name="projectCode" :value="mFromdata.projectCode" label="全网统一项目编码："
                    label-width="9em" />
                <van-field readonly name="searchKey" type="textarea" :value="mFromdata.searchKey" label="企业名称："
                    label-width="5em" />
                <van-field readonly name="searchEntNameA" :value="mFromdata.searchEntNameA" label="输入企业名称A："
                    label-width="7.75em" />
                <van-field readonly name="entNameA" :value="mFromdata.entNameA" label="匹配企业名称A：" label-width="7.75em" />
                <van-field readonly name="searchEntNameB" :value="mFromdata.searchEntNameB" label="输入企业名称B："
                    label-width="7.75em" />
                <van-field readonly name="entNameB" :value="mFromdata.entNameB" label="匹配企业名称B：" label-width="7.75em" />
                <van-field readonly name="dictRelPath" type="textarea" :value="mFromdata.dictRelPath" label="关联路径："
                    label-width="5em" />
                <van-field readonly name="dictRelType" :value="mFromdata.dictRelType" label="关联类型：" label-width="5em" />
                <van-field readonly name="dictRelLevel" :value="mFromdata.dictRelLevel" label="关联层级："
                    label-width="5em" />

            </van-cell-group>


        </van-form>

    </div>
</template>


<script>

import { Notify, Toast } from "vant";

import moment from 'moment'
import jTool from "../../assets/js/jHelper";
import { createDICTProjectAccRecordRmind } from "@/api/dictapi";
import SectionHeader from '../sztdzj/sztdzjDetail/section-header.vue';


export default {
    data() {
        return {

            params: {},
            mFromdata: {
                
                entName: '',
                type: '',
                uniscid: '',

                inv: '',
                invtype: '',


                abnormaloperation: [],
                wrongfulFaith: [],
                dishonesty: [],

            },



            // stakeholderRoleColumns: [
            //     { label: '客户经理', value: '客户经理' },
            //     { label: '解决方案经理', value: '解决方案经理' },
            //     { label: '项目经理', value: '项目经理' },
            //     { label: '项目责任人', value: '项目责任人' },
            //     { label: '客户联系人', value: '客户联系人' }],


            currentDate: new Date(),
            showPopupView: false,
        };
    },

    computed: {


        
    },

    //生命周期--创建完成
    created() {


    },

    beforeRouteLeave(to, from, next) {
        next();
    },

    //生命周期--进入
    activated() {


        // 每次进来删除数据 删除缓存
        let formData = this.$route.query.formData;
        Object.assign(this.mFromdata, formData) ;

        this.params = this.$route.query;
    },



    components: {
        SectionHeader




    },

    //生命周期--挂载完成
    mounted() { },

    //方法调用
    methods: {



    },
};


</script>

<style scoped>
/* @import url();*/
</style>